how to convert epoch time to date in java

54

how to convert epoch time to date in java -

String formatted = dateTime.format(DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss"));

Comments

Submit
0 Comments